package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.MemberDao;
import com.platform.entity.MemberEntity;
import com.platform.service.MemberService;

/**
 * 好友+群聊+公众号+特殊账号Service实现类
 *
 * @author LarkerJin
 * @email 277901879@qq.com
 * @date 2019-07-25 16:47:12
 */
@Service("memberService")
public class MemberService {
    @Autowired
    private MemberDao memberDao;

    public MemberEntity queryObject(Integer id) {
        return memberDao.queryObject(id);
    }

    public List<MemberEntity> queryList(Map<String, Object> map) {
        return memberDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return memberDao.queryTotal(map);
    }

    public int save(MemberEntity member) {
        return memberDao.save(member);
    }

    public int update(MemberEntity member) {
        return memberDao.update(member);
    }

    public int delete(Integer id) {
        return memberDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return memberDao.deleteBatch(ids);
    }
}
